'''
Created on May 21, 2013

@author: kieubinh
'''

from svmutil import *

#max = 100000
#number_train = 65000

import sys

name_file = sys.argv[1]

f_in = open(name_file,'r')
count = 0
for line in f_in:
    if len(line)>=5:
        count+=1

f_in.close()

y, x = svm_read_problem(name_file)


import time
start_time = time.time()
    
m = svm_train(y, x, '-s 0 -t 2 -v 10')
print m
print "The running time: "+str(time.time()-start_time)
print "---------------------------------------------"

